import request from '@/utils/request'

// 查询客户事件列表
export function listCustEvent(query) {
  return request({
    url: '/house_sale/CustEvent/list',
    method: 'get',
    params: query
  })
}

// 查询客户事件详细
export function getCustEvent(eventid) {
  return request({
    url: '/house_sale/CustEvent/' + eventid,
    method: 'get'
  })
}

// 新增客户事件
export function addCustEvent(data) {
  return request({
    url: '/house_sale/CustEvent',
    method: 'post',
    data: data
  })
}

// 修改客户事件
export function updateCustEvent(data) {
  return request({
    url: '/house_sale/CustEvent',
    method: 'put',
    data: data
  })
}

// 删除客户事件
export function delCustEvent(eventid) {
  return request({
    url: '/house_sale/CustEvent/' + eventid,
    method: 'delete'
  })
}

//事件
export function listEvent(custId){
  return request({
    url: '/house_sale/CustEvent/'+custId,
    method: 'get',
  })
}

